home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 July & August
/
PCWorld_2006-07-08_cd.bin
/
komunikace
/
apache
/
apache_2[1].2.2-win32-x86-no_ssl.msi
/
Data1.cab
/
_6B2373CCEECC7AEC4906648B0A2525D2
< prev
next >
Wrap
Extensible Markup Language
|
2006-01-15
|
18KB
|
333 lines
<?xml version="1.0" encoding="EUC-KR"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
<title>╛╞╞──í ┼⌡┼Σ╕«╛≤: .htaccess ╞─└╧ - Apache HTTP Server</title>
<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
<link href="../images/favicon.ico" rel="shortcut icon" /></head>
<body id="manual-page"><div id="page-header">
<p class="menu"><a href="../mod/">╕≡╡Γ</a> | <a href="../mod/directives.html">┴÷╜├╛ε╡Θ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">┐δ╛ε</a> | <a href="../sitemap.html">╗τ└╠╞«╕╩</a></p>
<p class="apache">Apache HTTP Server Version 2.2</p>
<img alt="" src="../images/feather.gif" /></div>
<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
<div id="path">
<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">How-To / Tutorials</a></div><div id="page-content"><div id="preamble"><h1>╛╞╞──í ┼⌡┼Σ╕«╛≤: .htaccess ╞─└╧</h1>
<div class="toplang">
<p><span>░í┤╔╟╤ ╛≡╛ε: </span><a href="../en/howto/htaccess.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="../ja/howto/htaccess.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="../ko/howto/htaccess.html" title="Korean"> ko </a> |
<a href="../pt-br/howto/htaccess.html" hreflang="pt-br" rel="alternate" title="Português (Brasil)"> pt-br </a></p>
</div>
<div class="outofdate">└╠ ╣«╝¡┤┬ ├╓╜┼╞╟ ╣°┐¬└╠ ╛╞┤╒┤╧┤┘.
├╓▒┘┐í ║»░µ╡╚ │╗┐δ└║ ┐╡╛ε ╣«╝¡╕ª ┬ⁿ░φ╟╧╝╝┐Σ.</div>
<p><code>.htaccess</code> ╞─└╧└╗ ╗τ┐δ╟╧┐⌐ ╡≡╖║┼Σ╕«║░╖╬ ╝│┴ñ└╗
║»░µ╟╥ ╝÷ └╓┤┘.</p>
</div>
<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#related">.htaccess ╞─└╧</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#what">╣½╛∙└╠╕τ/╛ε╢╗░╘ ╗τ┐δ╟╧┤┬░í</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#when">╛≡┴ª .htaccess ╞─└╧└╗ ╗τ┐δ╟╧│¬
(╚ñ└║ ╗τ┐δ╟╧┴÷ ╛╩│¬)</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#how">╛ε╢╗░╘ ┴÷╜├╛ε╕ª └√┐δ╟╧│¬</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#auth">└╬┴⌡ ┐╣┴ª</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#ssi">Server Side Includes ┐╣┴ª</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#cgi">CGI ┐╣┴ª</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#troubleshoot">╣«┴ª╟╪░ß</a></li>
</ul></div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="related" id="related">.htaccess ╞─└╧</a></h2>
<table class="related"><tr><th>░ⁿ╖├╡╚ ╕≡╡Γ</th><th>░ⁿ╖├╡╚ ┴÷╜├╛ε</th></tr><tr><td><ul><li><code class="module"><a href="../mod/core.html">core</a></code></li><li><code class="module"><a href="../mod/mod_authn_file.html">mod_authn_file</a></code></li><li><code class="module"><a href="../mod/mod_authz_groupfile.html">mod_authz_groupfile</a></code></li><li><code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code></li><li><code class="module"><a href="../mod/mod_include.html">mod_include</a></code></li><li><code class="module"><a href="../mod/mod_mime.html">mod_mime</a></code></li></ul></td><td><ul><li><code class="directive"><a href="../mod/core.html#accessfilename">AccessFileName</a></code></li><li><code class="directive"><a href="../mod/core.html#allowoverride">AllowOverride</a></code></li><li><code class="directive"><a href="../mod/core.html#options">Options</a></code></li><li><code class="directive"><a href="../mod/mod_mime.html#addhandler">AddHandler</a></code></li><li><code class="directive"><a href="../mod/core.html#sethandler">SetHandler</a></code></li><li><code class="directive"><a href="../mod/core.html#authtype">AuthType</a></code></li><li><code class="directive"><a href="../mod/core.html#authname">AuthName</a></code></li><li><code class="directive"><a href="../mod/mod_authn_file.html#authuserfile">AuthUserFile</a></code></li><li><code class="directive"><a href="../mod/mod_authz_groupfile.html#authgroupfile">AuthGroupFile</a></code></li><li><code class="directive"><a href="../mod/core.html#require">Require</a></code></li></ul></td></tr></table>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="what" id="what">╣½╛∙└╠╕τ/╛ε╢╗░╘ ╗τ┐δ╟╧┤┬░í</a></h2>
<p><code>.htaccess</code> ╞─└╧(╚ñ└║ "║╨╗Ω ╝│┴ñ╞─└╧")└╗
╗τ┐δ╟╧╕Θ ╡≡╖║┼Σ╕«║░╖╬ ╝│┴ñ└╗ ║»░µ╟╥ ╝÷ └╓┤┘. ┐⌐╖» ╝│┴ñ ┴÷╜├╛ε░í
└╓┤┬ ╞─└╧└╗ ╞»┴ñ ╣«╝¡ ╡≡╖║┼Σ╕«┐í ╡╬╕Θ, ▒╫ ╡≡╖║┼Σ╕«┐═ ╕≡╡τ
╟╧└º╡≡╖║┼Σ╕«┐í ┴÷╜├╛ε╕ª └√┐δ╟╤┤┘.</p>
<div class="note"><h3>┴╓└╟:</h3>
<p><code>.htaccess</code> ╞─└╧╕φ└╗ ┤┘╕ú░╘ ╗τ┐δ╟╧░φ ╜═┤┘╕Θ,
<code class="directive"><a href="../mod/core.html#accessfilename">AccessFileName</a></code> ┴÷╜├╛ε╕ª
╗τ┐δ╟╧┐⌐ ║»░µ╟╥ ╝÷ └╓┤┘. ┐╣╕ª ╡Θ╛ε, <code>.config</code>
╞─└╧╕φ└╗ ╗τ┐δ╟╧╖┴╕Θ ╝¡╣÷ ╝│┴ñ╞─└╧┐í ┤┘└╜░· ░░└╠ ├▀░í╟╤┤┘.</p>
<div class="example"><p><code>
AccessFileName .config
</code></p></div>
</div>
<p>└╧╣▌└√└╕╖╬ <code>.htaccess</code> ╞─└╧└║ <a href="../configuring.html#syntax">┴╓╝│┴ñ╞─└╧</a>░· ╣«╣²└╠
░░┤┘. <code class="directive"><a href="../mod/core.html#allowoverride">AllowOverride</a></code>
┴÷╜├╛ε░í └╠ ╞─└╧┐í │¬┐├ ╝÷ └╓┤┬ │╗┐δ└╗ ░ß┴ñ╟╤┤┘. └╠ ┴÷╜├╛ε┤┬
<code>.htaccess</code> ╞─└╧┐í╝¡ ╟π┐δ╟╧┤┬ ┴÷╜├╛ε ║╨╖∙╕ª ┴÷┴ñ╟╤┤┘.
┴÷╜├╛ε╕ª <code>.htaccess</code> ╞─└╧┐í╝¡ ╗τ┐δ╟╥ ╝÷ └╓┤┘╕Θ,
╟╪┤τ ┴÷╜├╛ε ╣«╝¡└╟ Override ╟╫╕±└║ ┴÷╜├╛ε╕ª ╟π┐δ╟╧▒Γ└º╟╪
<code class="directive"><a href="../mod/core.html#allowoverride">AllowOverride</a></code>┐í ╗τ┐δ╟╥
░¬└╗ ╛╦╖┴┴╪┤┘.</p>
<p>┐╣╕ª ╡Θ╛ε, <code class="directive"><a href="../mod/core.html#adddefaultcharset">AddDefaultCharset</a></code>
┴÷╜├╛ε ╣«╝¡╕ª ║╕╕Θ └╠ ┴÷╜├╛ε╕ª <code>.htaccess</code> ╞─└╧┐í╝¡
╗τ┐δ╟╥ ╝÷ └╓┤┘. (┴÷╜├╛ε ┐Σ╛α┐í╝¡ ╗τ┐δ└σ╝╥ ╟╫╕±└╗ ║╕╢≤.)
<a href="../mod/directive-dict.html#Context">Override</a>
┴┘┐í <code>FileInfo</code>░í └╓┤┘. ▒╫╖í╝¡ └╠ ┴÷╜├╛ε╕ª
<code>.htaccess</code> ╞─└╧┐í╝¡ ╗τ┐δ╟╧▒Γ└º╟╪╝¡┤┬ ├╓╝╥╟╤
<code>AllowOverride FileInfo</code>░í ╟╩┐Σ╟╧┤┘.</p>
<div class="example"><h3>┐╣┴ª:</h3><table>
<tr>
<td><a href="../mod/directive-dict.html#Context">╗τ┐δ└σ╝╥:</a></td>
<td>┴╓╝¡╣÷╝│┴ñ, ░í╗≤╚ú╜║╞«, directory, .htaccess</td>
</tr>
<tr>
<td><a href="../mod/directive-dict.html#Override">Override:</a></td>
<td>FileInfo</td>
</tr>
</table></div>
<p>╞»┴ñ ┴÷╜├╛ε╕ª <code>.htaccess</code> ╞─└╧┐í╝¡ ╗τ┐δ╟╥
╝÷ └╓┤┬┴÷ ▒├▒▌╟╧╕Θ ┴÷╜├╛ε ╣«╝¡└╟ ╗τ┐δ└σ╝╥ ╟╫╕±┐í ".htaccess"░í
└╓┤┬┴÷ ╚«└╬╟╤┤┘.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="when" id="when">╛≡┴ª .htaccess ╞─└╧└╗ ╗τ┐δ╟╧│¬
(╚ñ└║ ╗τ┐δ╟╧┴÷ ╛╩│¬)</a></h2>
<p>└╧╣▌└√└╕╖╬ ┴╓╝¡╣÷╞─└╧┐í ┴ó▒┘╟╥ ╝÷ ╛°┤┬ ░µ┐∞░í ╛╞┤╧╢≤╕Θ
<code>.htaccess</code> ╞─└╧└╗ ╗τ┐δ╟╧╕Θ ╛╚╡╚┤┘. ┐╣╕ª ╡Θ╛ε,
╗τ┐δ└┌ └╬┴⌡└╠ ╟╫╗≤ <code>.htaccess</code> ╞─└╧┐í └╓╛ε╛▀
╟╤┤┘┤┬ ░═└║ └▀╕° ╛╦╖┴┴° ┐└╟╪┤┘. └╠┤┬ ╗τ╜╟└╠ ╛╞┤╧┤┘. ┴╓╝¡╣÷╝│┴ñ┐í
╗τ┐δ└┌ └╬┴⌡ ╝│┴ñ└╗ └√└╗ ╝÷ └╓░φ, ╗τ╜╟ └╠╖»▒µ ▒╟╟╤┤┘.</p>
<p><code>.htaccess</code> ╞─└╧└║ ─┴┼┘├≈ ┴ª░°└┌░í ╡≡╖║┼Σ╕«║░╖╬
╝¡╣÷ ╝│┴ñ└╗ ┤┘╕ú░╘╟╧░φ ╜═┴÷╕╕ ╝¡╣÷ ╜├╜║┼█┐í root ▒╟╟╤└╠
╛°┤┬ ░µ┐∞┐í ╗τ┐δ╟╤┤┘. ╝¡╣÷ ░ⁿ╕«└┌░í ╝│┴ñ└╗ └┌┴╓ ║»░µ╟╧░φ
╜═┴÷ ╛╩└║ ░µ┐∞ └╧╣▌ ╗τ┐δ└┌░í ┴≈┴ó <code>.htaccess</code>
╞─└╧└╗ ╝÷┴ñ╟╧╡╡╖╧ ╟π┐δ╟╧┤┬ ░═└╠ ╣┘╢≈┴≈╟╧┤┘. ┐╣╕ª ╡Θ╛ε, ╟╤
──╟╗┼═┐í ┐⌐╖» ╗τ┐δ└┌ ╗τ└╠╞«╕ª ╝¡║±╜║╟╧┤┬ ISP┐í╝¡ ╗τ┐δ└┌░í
└┌╜┼└╟ ╝│┴ñ└╗ ║»░µ╟╧░φ ╜═└║ ░µ┐∞░í ▒╫╖»╟╧┤┘.</p>
<p>▒╫╖»│¬ └╧╣▌└√└╕╖╬ <code>.htaccess</code> ╞─└╧└║ ░í▒▐└√
╟╟╟╪╛▀ ╟╤┤┘. <code>.htaccess</code> ╞─└╧┐í╝¡ ╟π┐δ╟╧┤┬ ┴÷╜├╛ε┤┬
┴╓╝│┴ñ╞─└╧└╟ <code class="directive"><a href="../mod/core.html#directory"><Directory></a></code> ╝╜╝╟░· ░░└║ ╚┐░·░í
└╓┤┘.</p>
<p>┤┘└╜ ╡╬░í┴÷ ┼½ └╠└»╢º╣«┐í <code>.htaccess</code> ╞─└╧
╗τ┐δ└╗ ╟╟╟╪╛▀ ╟╤┤┘.</p>
<p>├╣╣°┬░┤┬ ╝║┤╔└╠┤┘. <code class="directive"><a href="../mod/core.html#allowoverride">AllowOverride</a></code>░í <code>.htaccess</code>
╞─└╧└╗ ╗τ┐δ╟╧╡╡╖╧ ╟π┐δ╟╧╕Θ, ╛╞╞──í┤┬ ╡≡╖║┼Σ╕«╕╢┤┘
<code>.htaccess</code> ╞─└╧└╗ ├ú┤┬┤┘. ▒╫╖í╝¡
<code>.htaccess</code> ╞─└╧└╗ ╟π┐δ╟╧╕Θ ╜╟┴ª╖╬ ╞─└╧└╗ ╗τ┐δ╟╧┴÷
╛╩┤┬ ░µ┐∞┐í╡╡ ╝║┤╔└╠ ╢│╛ε┴°┤┘! ╢╟, <code>.htaccess</code>
╞─└╧└║ ╣«╝¡╕ª ┐Σ├╗╟╥╢º╕╢┤┘ └╨╛ε╡Θ└╬┤┘.</p>
<p>░╘┤┘░í └√┐δ╟╪╛▀ ╟╧┤┬ └ⁿ├╝ ┴÷╜├╛ε╕ª ╕≡└╕▒Γ└º╟╪ ╛╞╞──í┤┬
╕≡╡τ ╗≤└º ╡≡╖║┼Σ╕«┐í╝¡ <code>.htaccess</code> ╞─└╧└╗ ├ú┤┬┤┘.
(<a href="#how">╛ε╢╗░╘ ┴÷╜├╛ε╕ª └√┐δ╟╧│¬</a> └²└╗ ┬ⁿ░φ.)
▒╫╖í╝¡ <code>/www/htdocs/example</code> ╡≡╖║┼Σ╕«┐í └╓┤┬
╞─└╧└╗ ┐Σ├╗╟╧╕Θ, ╛╞╞──í┤┬ ┤┘└╜ ╞─└╧╡Θ└╗ ├ú╛╞╛▀ ╟╤┤┘.</p>
<div class="example"><p><code>
/.htaccess<br />
/www/.htaccess<br />
/www/htdocs/.htaccess<br />
/www/htdocs/example/.htaccess
</code></p></div>
<p>▒╫╖í╝¡ ▒╫ ╡≡╖║┼Σ╕«┐í └╓┤┬ ╞─└╧└╗ ┴ó▒┘╟╥ ╢º╕╢┤┘ ╝│┴ñ╞─└╧└╠
└ⁿ╟⌠ ╛°╛ε╡╡ ╞─└╧╜├╜║┼█└╗ 4╣° ┤⌡ ┴ó▒┘╟╪╛▀ ╟╤┤┘.
(<code>/</code>┐í╝¡╡╡ <code>.htaccess</code> ╞─└╧└╗ ╟π┐δ╟╤
░µ┐∞╕ª ╕╗╟╤┤┘. ║╕┼δ└║ ╟π┐δ╟╧┴÷ ╛╩┤┬┤┘.)</p>
<p>╡╬╣°┬░ └╠└»┤┬ ║╕╛╚└╠┤┘. ╗τ┐δ└┌┐í░╘ ╝¡╣÷╝│┴ñ ║»░µ ▒╟╟╤└╗
┴╓╕Θ ┤τ╜┼└╠ ░¿┤τ╟╥ ╝÷ ╛°┤┬ ║»╚¡░í └╧╛ε│» ╝÷ └╓┤┘. ╗τ┐δ└┌┐í░╘
└╠╖▒ ▒╟╟╤└╗ ┴┘┴÷ ░⌡░⌡└╠ ╗²░ó╟╧╢≤. ╢╟, ╗τ┐δ└┌░í ┐°╟╧┤┬ ░═║╕┤┘
└√└║ ▒╟╟╤└╗ ┴╓╕Θ ▒Γ╝·┴÷┐°┐Σ├╗└╠ ╡Θ╛ε┐┬┤┘. ╗τ┐δ└┌┐í░╘ ░í┤╔╟╤
▒╟╟╤ ╝÷┴╪└╗ ╕φ╚«╚≈ ╛╦╖┴╢≤. ╗τ┐δ└┌┐í░╘ <code class="directive"><a href="../mod/core.html#allowoverride">AllowOverride</a></code>╕ª ╛ε╢╗░╘ ╝│┴ñ╟╧┐┤┤┬┴÷
┴ñ╚«╚≈ ╛╦╕«░φ ░ⁿ╖├ ╣«╝¡╕ª ┴ª░°╟╧╕Θ ╛╒└╕╖╬ ╚Ñ╢⌡└╗ ╟╟╟╥ ╝÷
└╓┤┘.</p>
<p>┴÷╜├╛ε╕ª <code>/www/htdocs/example</code> ╡≡╖║┼Σ╕«└╟
<code>.htaccess</code> ╞─└╧└╗ ╡╬┤┬ ░═░· ┴╓╝¡╣÷╝│┴ñ└╟
<code><Directory /www/htdocs/example></code> Directory
╝│┴ñ┐í ╡╬┤┬ ░═└║ ┐╧└ⁿ╚≈ ░░┤┘.</p>
<p><code>/www/htdocs/example</code>┐í └╓┤┬
<code>.htaccess</code> ╝╜╝╟:</p>
<div class="example"><h3><code>/www/htdocs/example</code>┐í └╓┤┬
.htaccess ╞─└╧ │╗┐δ</h3><p><code>
AddType text/example .exm
</code></p></div>
<div class="example"><h3><code>httpd.conf</code> ╞─└╧┐í └╓┤┬ ╝╜╝╟</h3><p><code>
<Directory /www/htdocs/example><br />
<span class="indent">
AddType text/example .exm<br />
</span>
</Directory>
</code></p></div>
<p>▒╫╖»│¬ ╞─└╧└╗ ┐Σ├╗╟╥ ╢º╕╢┤┘ ╝│┴ñ└╗ └╨┴÷╛╩░φ ╛╞╞──í░í
╜├└█╟╥╢º ╟╤╣°╕╕ ╝│┴ñ└╗ └╨▒Γ╢º╣«┐í ░░└║ ╝│┴ñ└╗ ╝¡╣÷╝│┴ñ╞─└╧┐í
╗τ┐δ╟╧╕Θ ╝║┤╔└╠ ┤⌡ ║ⁿ╕ú┤┘.</p>
<p><code class="directive"><a href="../mod/core.html#allowoverride">AllowOverride</a></code> ┴÷╜├╛ε╕ª
<code>none</code>└╕╖╬ ╝│┴ñ╟╧╕Θ <code>.htaccess</code> ╞─└╧└╗
┐╧└ⁿ╚≈ ╗τ┐δ╟╥ ╝÷ ╛°┤┘.</p>
<div class="example"><p><code>
AllowOverride None
</code></p></div>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="how" id="how">╛ε╢╗░╘ ┴÷╜├╛ε╕ª └√┐δ╟╧│¬</a></h2>
<p><code>.htaccess</code> ╞─└╧└╗ ╣▀░▀╟╤ ╡≡╖║┼Σ╕«┐═ ▒╫ ╡≡╖║┼Σ╕«└╟
╕≡╡τ ╟╧└º╡≡╖║┼Σ╕«┐í <code>.htaccess</code> ╞─└╧┐í └╓┤┬ ╝│┴ñ
┴÷╜├╛ε╕ª └√┐δ╟╤┤┘. ▒╫╖í╝¡ ╗≤└º╡≡╖║┼Σ╕«└╟ <code>.htaccess</code>
╞─└╧└╗ ┴╓└╟╟╪╛▀ ╟╤┤┘. ╣▀░▀╟╤ ╝°╝¡╖╬ ┴÷╜├╛ε╕ª └√┐δ╟╤┤┘. ╞»┴ñ
╡≡╖║┼Σ╕«┐í └╓┤┬ <code>.htaccess</code> ╞─└╧└║ ╗≤└º╡≡╖║┼Σ╕«┐í
└╓┤┬ <code>.htaccess</code> ╞─└╧└╟ ┴÷╜├╛ε╕ª ╣½╚┐╖╬ ╕╕╡Θ
╝÷ └╓░φ, ╗≤└º╡≡╖║┼Σ╕«┐í └╓┤┬ ┴÷╜├╛ε┤┬ ┤⌡ ╗≤└º╡≡╖║┼Σ╕« ╚ñ└║
┴╓╝│┴ñ╞─└╧┐í └╓┤┬ ┴÷╜├╛ε╕ª ╣½╚┐╖╬ ╕╕╡Θ ╝÷ └╓┤┘.</p>
<p>┐╣┴ª:</p>
<p><code>/www/htdocs/example1</code> ╡≡╖║┼Σ╕«┐í ┤┘└╜░· ░░└║
<code>.htaccess</code> ╞─└╧└╠ └╓┤┘.</p>
<div class="example"><p><code>
Options +ExecCGI
</code></p></div>
<p>(┴╓└╟: <code>.htaccess</code> ╞─└╧┐í "<code class="directive"><a href="../mod/core.html#options">Options</a></code>" ┴÷╜├╛ε╕ª ╗τ┐δ╟╧╖┴╕Θ
"<code>AllowOverride Options</code>"░í ╟╩┐Σ╟╧┤┘.)</p>
<p><code>/www/htdocs/example1/example2</code> ╡≡╖║┼Σ╕«┐í┤┬
┤┘└╜░· ░░└║ <code>.htaccess</code> ╞─└╧└╠ └╓┤┘.</p>
<div class="example"><p><code>
Options Includes
</code></p></div>
<p>└╠ ╡╬╣°┬░ <code>.htaccess</code> ╞─└╧└╟
<code>Options Includes</code>░í └╠└ⁿ ╝│┴ñ└╗ ┐╧└ⁿ╚≈ ╣½╚┐╖╬
╕╕╡Θ▒Γ╢º╣«┐í <code>/www/htdocs/example1/example2</code>
╡≡╖║┼Σ╕«┤┬ CGI ╜╟╟α└╗ ╟π┐δ╟╧┴÷ ╛╩┤┬┤┘.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="auth" id="auth">└╬┴⌡ ┐╣┴ª</a></h2>
<p>└╬┴⌡ ╣µ╣²└╗ ╛╦▒Γ└º╟╪ ╣┘╖╬ └╠░≈║╬┼═ └╨┤┬┤┘╕Θ ┴╓└╟╟╥ ░═└╠
└╓┤┘. ╛╧╚ú └╬┴⌡└╗ ╟╧╖┴╕Θ <code>.htaccess</code> ╞─└╧└╠
╟╩┐Σ╟╧┤┘┤┬ ┐└╟╪░í │╬╕« ╞█┴«└╓┤┘. └╠┤┬ ╗τ╜╟└╠ ╛╞┤╧┤┘.
┴╓╝│┴ñ╞─└╧└╟ <code class="directive"><a href="../mod/core.html#directory"><Directory></a></code> ╝╜╝╟┐í └╬┴⌡ ┴÷╜├╛ε╕ª
╡╬┤┬ ░═└╠ ┤⌡ ▒╟└σ╟╧┤┬ ╣µ╣²└╠░φ, ╝¡╣÷└╟ ┴╓╝│┴ñ╞─└╧└╗ ╝÷┴ñ╟╥
╝÷ ╛°┤┬ ░µ┐∞┐í╕╕ <code>.htaccess</code> ╞─└╧└╗ ╗τ┐δ╟╪╛▀
╟╤┤┘. ╛≡┴ª <code>.htaccess</code> ╞─└╧└╗ ╗τ┐δ╟╪╛▀ ╟╧┤┬┴÷┐═
╗τ┐δ╟╧┴÷ ╕╗╛╞╛▀ ╟╧┤┬┴÷┤┬ <a href="#when">└º┐í╝¡</a>
╝│╕φ╟╧┐┤┤┘.</p>
<p>╛╒┐í╝¡ ╕╗╟▀┴÷╕╕ ╛╞┴≈╡╡ <code>.htaccess</code> ╞─└╧└╠
╟╩┐Σ╟╧┤┘░φ ╗²░ó╡╟╕Θ ╛╞╖í ╝│┴ñ└╠ ╡╡┐≥└╠ ╡╔ ░═└╠┤┘.</p>
<p><code>.htaccess</code> ╞─└╧ │╗┐δ.</p>
<div class="example"><p><code>
AuthType Basic<br />
AuthName "Password Required"<br />
AuthUserFile /www/passwords/password.file<br />
AuthGroupFile /www/passwords/group.file<br />
Require Group admins
</code></p></div>
<p>└╠ ┴÷╜├╛ε░í ╡┐└█╟╧▒Γ└º╟╪╝¡┤┬
<code>AllowOverride AuthConfig</code> ┴÷╜├╛ε░í ╟╩┐Σ╟╘└╗
╕φ╜╔╟╧╢≤.</p>
<p>└╬┴⌡░· ▒╟╟╤║╬┐⌐┐í ┤δ╟╤ └┌╝╝╟╤ ╝│╕φ└║ <a href="auth.html">└╬┴⌡
┼⌡┼Σ╕«╛≤</a>└╗ ║╕▒µ ╣┘╢⌡┤┘.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="ssi" id="ssi">Server Side Includes ┐╣┴ª</a></h2>
<p>╢╟┤┘╕Ñ └╧╣▌└√└╬ <code>.htaccess</code> ╞─└╧└╟ ┐δ╡╡┤┬
╞»┴ñ ╡≡╖║┼Σ╕«┐í╝¡ Server Side Includes╕ª ░í┤╔╟╧░╘ ╕╕╡σ┤┬
░═└╠┤┘. ┐°╟╧┤┬ ╡≡╖║┼Σ╕«└╟ <code>.htaccess</code> ╞─└╧┐í
┤┘└╜░· ░░└║ ╝│┴ñ ┴÷╜├╛ε╕ª ╗τ┐δ╟╧╕Θ ╡╚┤┘.</p>
<div class="example"><p><code>
Options +Includes<br />
AddType text/html shtml<br />
AddHandler server-parsed shtml
</code></p></div>
<p>└╠ ┴÷╜├╛ε░í ╡┐└█╟╧╖┴╕Θ <code>AllowOverride Options</code>┐═
<code>AllowOverride FileInfo</code>░í ╕≡╡╬ ╟╩┐Σ╟╘└╗ ╕φ╜╔╟╧╢≤.</p>
<p>server-side includes┐í ┤δ╟╤ └┌╝╝╟╤ ╝│╕φ└║ <a href="ssi.html">SSI ┼⌡┼Σ╕«╛≤</a>└╗ ║╕▒µ ╣┘╢⌡┤┘.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="cgi" id="cgi">CGI ┐╣┴ª</a></h2>
<p>╕╢┴÷╕╖└╕╖╬ <code>.htaccess</code> ╞─└╧└╗ ╗τ┐δ╟╧┐⌐ ╞»┴ñ
╡≡╖║┼Σ╕«┐í╝¡ CGI ╟┴╖╬▒╫╖Ñ ╜╟╟α└╗ ╟π┐δ╟╧░φ ╜═┤┘╕Θ, ┤┘└╜░·
░░└║ ╝│┴ñ└╗ ╗τ┐δ╟╤┤┘.</p>
<div class="example"><p><code>
Options +ExecCGI<br />
AddHandler cgi-script cgi pl
</code></p></div>
<p>╚ñ└║ └╠ ╡≡╖║┼Σ╕«┐í └╓┤┬ ╕≡╡τ ╞─└╧└╗ CGI ╟┴╖╬▒╫╖Ñ└╕╖╬
├│╕«╟╧░φ ╜═┤┘╕Θ ┤┘└╜░· ░░└║ ╝│┴ñ╡╡ ░í┤╔╟╧┤┘.</p>
<div class="example"><p><code>
Options +ExecCGI<br />
SetHandler cgi-script
</code></p></div>
<p>└╠ ┴÷╜├╛ε░í ╡┐└█╟╧╖┴╕Θ <code>AllowOverride Options</code>┐═
<code>AllowOverride FileInfo</code>░í ╕≡╡╬ ╟╩┐Σ╟╘└╗ ╕φ╜╔╟╧╢≤.</p>
<p>CGI ╟┴╖╬▒╫╖í╣╓░· ╝│┴ñ┐í ┤δ╟╤ └┌╝╝╟╤ ╝│╕φ└║ <a href="cgi.html">CGI ┼⌡┼Σ╕«╛≤</a>└╗ ║╕▒µ ╣┘╢⌡┤┘.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="troubleshoot" id="troubleshoot">╣«┴ª╟╪░ß</a></h2>
<p><code>.htaccess</code> ╞─└╧┐í ╡╨ ╝│┴ñ ┴÷╜├╛ε░í ┐°╟╧┤┬
▒Γ┤╔└╗ ╟╧┴÷ ╛╩┤┬ ░µ┐∞ ┐⌐╖»░í┴÷ └╠└»░í └╓└╗ ╝÷ └╓┤┘.</p>
<p>░í└σ └╧╣▌└√└╬ ╣«┴ª┤┬ ╝│┴ñ ┴÷╜├╛ε╕ª ░í┤╔╟╧░╘ ╕╕╡σ┤┬ <code class="directive"><a href="../mod/core.html#allowoverride">AllowOverride</a></code>╕ª ╝│┴ñ╟╧┴÷ ╛╩└║
░µ┐∞┤┘. ╣«┴ª░í ╡╟┤┬ ╞─└╧ ┐╡┐¬┐í <code>AllowOverride None</code>└╠
╛°┤┬┴÷ ╚«└╬╟╤┤┘. <code>.htaccess</code> ╞─└╧└╗ ╛╞╣½╖╕░╘│¬
└√└║ ┤┘└╜ ╞Σ└╠┴÷╕ª ┤┘╜├ ┴ó▒┘╟╧┐⌐ ╜▒░╘ ░╦╗τ╟╪║╝ ╝÷ └╓┤┘.
╝¡╣÷ ┐└╖∙░í │¬┐└┴÷ ╛╩└╕╕Θ ░┼└╟ ╚«╜╟╚≈
<code>AllowOverride None</code>└╗ ╗τ┐δ╟╤ ░µ┐∞┤┘.</p>
<p>╣▌┤δ╖╬ ╣«╝¡┐í ┴ó▒┘╟╥╢º ╝¡╣÷ ┐└╖∙░í ╣▀╗²╟╧╕Θ ╛╞╞──í ┐└╖∙╖╬▒╫╕ª
╗∞╞∞║┴╢≤. ╛╞╕╢╡╡ <code>.htaccess</code> ╞─└╧┐í └╓┤┬ ┴÷╜├╛ε╕ª
╟π┐δ╟╧┴÷ ╛╩┤┬┤┘░φ ╟╥ ░═└╠┤┘. ╛╞┤╧░φ ╣«╣² ┐└╖∙░í └╓┤┘╕Θ ┐└╖∙╕ª
░φ─ú┤┘.</p>
</div></div>
<div class="bottomlang">
<p><span>░í┤╔╟╤ ╛≡╛ε: </span><a href="../en/howto/htaccess.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="../ja/howto/htaccess.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="../ko/howto/htaccess.html" title="Korean"> ko </a> |
<a href="../pt-br/howto/htaccess.html" hreflang="pt-br" rel="alternate" title="Português (Brasil)"> pt-br </a></p>
</div><div id="footer">
<p class="apache">Copyright 1995-2006 The Apache Software Foundation or its licensors, as applicable.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
<p class="menu"><a href="../mod/">╕≡╡Γ</a> | <a href="../mod/directives.html">┴÷╜├╛ε╡Θ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">┐δ╛ε</a> | <a href="../sitemap.html">╗τ└╠╞«╕╩</a></p></div>
</body></html>